using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Win32.Dialogs;
using System;
using System.Threading.Tasks;
using System.Linq;
using ArtOfTest.Common.Win32;
using System.Collections.Generic;

namespace Tests
{
	static class WindowExtensions
	{
		public static bool IsChildOf(this Window potentialChild, Window potentialParent)
		{
			var parentOfPotentialChild = potentialChild.ParentWindow;
			return parentOfPotentialChild != null && parentOfPotentialChild.Handle == potentialParent.Handle;
		}
	}
}
